﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ViewModels.Shared;
using ViewModels.User;
using static Global.Const;

namespace ViewModels.Pwd
{
    public class ResetModel : PhoneModel, ICaptchaModel
    {
        public string Captcha { get; set; }

        [Required(ErrorMessage = "* 新密码不能为空")]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "* 密码长度至少为6位")]
        public string Password { get; set; }

        [Required(ErrorMessage = "* 确认密码不能为空")]
        [System.ComponentModel.DataAnnotations.Compare(
            "Password", ErrorMessage = "* 确认密码和密码不一致")]
        public string ConfirmPassword { get; set; }
    }
}
